import pandas as pd

data1 = [['胶带', '卷', 7.5, 8],
         ['复印纸', '箱', 90.0, 4],
         ['包装盒', '个', 2.4, 50]]
columns = ['产品', '单位', '单价', '数量']
index = ['c001', 'c002', 'c003']
df1 = pd.DataFrame(data1, columns=columns, index=index)
print(df1)
df1 = pd.DataFrame(data1, columns=columns)
print(df1)

data2 = {'产品': ['胶带', '复印纸', '包装盒'],
         '单位': ['卷', '箱', '个'],
         '单价': [7.5, 90.0, 2.4],
         '数量': [8, 4, 50]}
df2 = pd.DataFrame(data2)
print(df2)

data3 = [{'产品': '胶带', '单位': '卷', '单价': 7.5, '数量': 8},
         {'产品': '复印纸', '单位': '箱', '单价': 90.0, '数量': 4},
         {'产品': '包装盒', '单位': '个', '单价': 2.4, '数量': 50}]
df3 = pd.DataFrame(data3)
print(df3)
